﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text; 
using MySql.Data.MySqlClient;

namespace MySQLLib
{
    public class Message
    {
        string[,] _message;
        private MySqlConnection conn;

        public void setConnection(MySqlConnection connection)
        {
            this.conn = connection;
        }

        public void refresh()
        {
            string[] column = new string[1];
            column[0] = "*";

            this._message = Query.SelectQuery(this.conn, "message", column);
        }

        public string[,] Messages
        {
            get { return this._message; }
        }
    }
}
